package com.woniuxy.service;

import com.woniuxy.entity.Activity;
import com.woniuxy.entity.ActivityOrder;
import com.woniuxy.entity.User;
import com.woniuxy.util.Page;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface ActitvityService {
    List<Map<String, Object>> selectActivityType() throws Exception;

    List<Map<String, Object>> selectCampByCity(String city) throws Exception;

    ArrayList<Map<String, Object>> selectActivtyList(String city) throws Exception;

    List<Map<String ,Object>> selectActivityById(Integer actId) throws Exception;

    Integer saveActiveOrder(ActivityOrder order) throws Exception ;

    int selectCountByStatusAndUserId(Integer index, Integer userId) throws Exception ;

    List<Map<String, Object>> selectByStatusAndUserId(Page page, Integer status, Integer userId) throws Exception;

    void updateOrderStatusById(Integer id) throws Exception;

    void deleteOrderById(Integer id) throws Exception;

    void updateActiveById(User user, Integer number, Integer id, Integer actId) throws Exception;
}
